#include"at89x52.h"
extern unsigned char Tcount0;

 void TimeTest()
 {

     Timer0Init();
	 while(1)
	 {
         if(Tcount0==10)
         {
            P1^=0XFF;
            Tcount0=0;
         }
         if(Tcount0==5)
         {
            P2^=0XFF;
         }
	 }
 }

